package com.hzb.shop.goods.service;

import com.hzb.shop.goods.entiy.ShopGoods;
import com.hzb.shop.goods.mapper.ShopGoodsMapper;
import com.hzb.shop.goods.rpc.ShopGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
@Service
public class ShopGoodsServieImpl implements ShopGoodsService {
    @Autowired
    private ShopGoodsMapper shopGoodsMapper;
    public int add(ShopGoods shopGoods) {
        return shopGoodsMapper.add(shopGoods);
    }

    public int update(ShopGoods shopGoods) {
        return shopGoodsMapper.update(shopGoods);
    }

    public ShopGoods get(ShopGoods shopGoods) {
        return shopGoodsMapper.get(shopGoods);
    }

    public List<ShopGoods> findList(ShopGoods shopGoods) {
        return shopGoodsMapper.findList(shopGoods);
    }

    public int delete(ShopGoods shopGoods) {
        return shopGoodsMapper.delete(shopGoods);
    }
}
